package com.yeban.base.day03;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/9/27
 */
public class Switch_work03 {

    public static void main(String[] args) {

        // y = 5
        int x=2,y=3;
        switch(x){
            default:
                y++;
            case 3:
                y++;
                break;
            case 4:
                y++;
        }
        System.out.println("y="+y);
    }
}
